package com.lingyun.ucm.client.config.listener;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import com.lingyun.ucm.client.config.cache.ClientCache;
import com.lingyun.ucm.common.rmi.IRMIClientService;

/**
 * 
 * @author Terrence2013
 * 2018年1月24日 上午9:42:09
 * 配置缓存刷新通知RMI服务
 */
public class RMIClientServiceImpl extends UnicastRemoteObject implements IRMIClientService {
    /**
	 * 
	 */
	private static final long serialVersionUID = -867367131679330538L;

	public RMIClientServiceImpl() throws RemoteException {}

    @Override
    public void refreshClientCache() throws RemoteException {
        new Thread(new Runnable() {
            @Override
            public void run() {
            	ClientCache.inst().refresh();
            }
        }).start();
    }
}
